WooCommerce\Square\Handlers\Order A

Total Complexity 66
Dependencies 5
Dependents 2
Total lines 529
Lines of code 235
Logical lines of code 123
Comment lines 209
Methods 22
Properties 2

Methods 22

Method Rating Maintainability Complexity Lines of code
maybe_sync_stock_for_refund_from_other_gateway()
A
45 13 40
filter_gateway_title()
A
53 8 21
maybe_stage_inventory_updates_for_product()
S
59 7 13
cache_previous_stock()
S
60 6 13
maybe_sync_staged_inventory_updates()
S
55 5 20
maybe_sync_stock_for_order_via_paypal()
S
60 5 14
add_admin_order_items()
S
47 2 48
maybe_sync_stock_for_order_via_other_gateway()
S
70 3 6
get_gift_card_total_refunded_amount()
S
71 2 5
sync_stock_for_order()
S
65 2 9
filter_payment_method_title()
S
70 2 6
get_order_total_before_gift_card()
S
78 1 3
set_order_total_before_gift_card()
S
78 1 3
set_gift_card_total_refunded_amount()
S
78 1 3
__construct()
S
63 1 9
set_gift_card_last4()
S
78 1 3
get_gift_card_last4()
S
79 1 3
get_gift_card_total_charged_amount()
S
78 1 3
hide_square_order_item_meta()
S
77 1 4
is_tender_type_gift_card()
S
78 1 3
is_tender_type_card()
S
78 1 3
set_gift_card_total_charged_amount()
S
78 1 3